package Jun13.utils;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestClientBuilder;
import org.elasticsearch.client.RestHighLevelClient;

public class ESUtils {

    private static RestHighLevelClient rest = new RestHighLevelClient(RestClient.builder(new HttpHost("localhost",9200,"http")));

    private ESUtils(){}

    public static RestHighLevelClient getRest(){
        return rest;
    }
}
